package com.jdog.server;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;

public class JettyServer {
	
	public static void main(String[] args) throws Exception {
		Server server = new Server(8888);
		WebAppContext context = new WebAppContext();
        context.setContextPath("");
        context.setDescriptor("F:/SmartGWTWS/ChatDemo/Webapp/WEB-INF/web.xml");
        context.setResourceBase("F:/SmartGWTWS/ChatDemo/Webapp");
        
        context.setParentLoaderPriority(true);
        server.setHandler(context);
  
        server.start();
        server.join();
	}
}
